import './assets/main.css'
import 'simplebar/dist/simplebar.min.css';

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import { library } from '@fortawesome/fontawesome-svg-core';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import SimpleBar from 'simplebar-vue';

// 引入具体的图标
import { faCoffee, faAnglesDown, faAnglesUp } from '@fortawesome/free-solid-svg-icons'; // 示例图标
// 根据需要添加更多图标

// 添加图标到库中
library.add(faCoffee); // 咖啡
library.add(faAnglesDown); // 向下
library.add(faAnglesUp); // 向上

const app = createApp(App)

app.component('font-awesome-icon', FontAwesomeIcon); // 注册组件
app.component('simple-bar', SimpleBar); // 注册组件
app.use(createPinia())
app.use(router)

app.mount('#app')
